package com.cloudcc.mobile.view.test;

import android.app.Activity;
import android.view.View;
import butterknife.Bind;

import com.cloudcc.mobile.R;
import com.cloudcc.mobile.view.base.BaseFragment;
import com.cloudcc.mobile.widget.CloudCCTitleBar;
import com.cloudcc.mobile.widget.CloudCCTitleBar.OnTitleBarClickListener;

public abstract class BaseStepFragment extends BaseFragment implements OnTitleBarClickListener {

	protected TestStepActivity mParentActivity; //容器
	CloudCCTitleBar headerbar;
	
	@Override
	public void onAttach(Activity activity) {
		super.onAttach(activity);
		mParentActivity =(TestStepActivity)activity;
	}
	@Override
	public void init() {
		headerbar =(CloudCCTitleBar) findViewById(R.id.headerbar);
		super.init();
		headerbar.completeProgress();
		headerbar.setOnTitleBarClickListener(this);
	}
	
	
	/**
	 * 进入下一个步骤
	 */
	protected void MoveNextStep() {
		mParentActivity.MoveNextStep();
	}

	@Override
	public void onClickLeft(View v) {
		mParentActivity.finish();
	}

	@Override
	public void onClickRight(View v) {
		
	}
	
	

}
